package edu.yctc.manage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.yctc.manage.entity.CourseDO;
import edu.yctc.manage.utils.PageQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zyj
 * @email 1527215026@qq.com
 * @date 2021-03-29 14:02:07
 */
@Mapper
public interface CourseDAO extends BaseMapper<CourseDO> {
    int insert(CourseDO courseDO);

    int update(CourseDO courseDO);

    int getTotal();

    List<CourseDO> getAll();

    List<CourseDO> selectList(PageQuery pageQuery);

    CourseDO getCourseDOBySdeptNameAndCourseName(String sdeptName, String courseName);
}
